package com.citywithincity.db;

import com.citywithincity.db.interfaces.IValueConvert;

public class BindConvert implements IValueConvert {
	
	private IValueConvert target;
	private IValueConvert convert;
	
	public BindConvert( IValueConvert target,IValueConvert convert) {
		this.convert = convert;
		this.target = target;
	}

	@Override
	public Object convert(Object value) {
		final IValueConvert convert = this.convert;
		final IValueConvert target = this.target;
		return convert.convert(target.convert(value));
	}

}
